package com.ljf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljf.admin.POJO.SysMenu;
import com.ljf.admin.POJO.SysRole;

import java.util.List;

/**
 * @Auther: lijinfeng
 * @Date: 2022/4/21
 * @Description 描述:
 */
public interface SysRoleService extends IService<SysRole> {


    int updateBatch(List<SysRole> list);

    int updateBatchSelective(List<SysRole> list);

    int batchInsert(List<SysRole> list);

    List<SysRole> selectRolesByUserId(Long userId);

    List<SysRole> getRolesByUserId(Long userId);

    void setRoleId(Long username, Long roleId);

    List<SysRole> getList();

    List<SysMenu> deleteRoleMenu(Long roleId, Long... menus);

    void addRole(SysRole sysRole);

    void editRole(SysRole sysRole);

    void deleteRole(Long roleId);
}
